package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDestinatonService {

    List<Destination> selectAllDest(int deep);

    PageInfo query(QueryObject queryObject);

    void changeHotState(Boolean hot, Long id);

    void updateInfoById(Destination destination);

    List<Destination> getToasts(Long parentId);

    List<Destination> queryDestByRegionId(Long regionId);

    boolean isAbroad(Long destId);

    List<Destination> list();

    /**
     * 根据目的地id获取国家
     *
     * @param destId
     * @return
     */
    Destination getCountry(Long destId);

    /**
     * 根据目的地id获取省份
     *
     * @param destId
     * @return
     */
    Destination getProvince(Long destId);
}
